package com.example.a001.part30;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.animation.Animation;
import android.view.animation.AnimationUtils;
import android.widget.ImageView;

import com.example.a001.R;


public class MainActivity extends Activity {
    private ImageView imgv_back;
    private ImageView imgv_line;
    private Animation mAnimation;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(com.example.a001.R.layout.activity_main3001);
        initView();
    }

    private void initView() {
        imgv_back = (ImageView) findViewById(R.id.imgv_back);
        imgv_line = (ImageView) findViewById(R.id.imgv_line);
        mAnimation = AnimationUtils.loadAnimation(MainActivity.this, R.anim.tv_off);
        mAnimation.setAnimationListener(new Animation.AnimationListener() {
            @Override
            public void onAnimationStart(Animation animation) {
            }

            @Override
            public void onAnimationRepeat(Animation animation) {
            }

            @Override
            public void onAnimationEnd(Animation animation) {
            }
        });
        imgv_line.setVisibility(View.VISIBLE);
        imgv_line.setAnimation(mAnimation);
        mAnimation.start();
    }
}